<?php

namespace common\models\tsline;

use Yii;

/**
 * This is the model class for table "{{%ts_user_channel}}".
 *
 * @property int $id
 * @property int $user_id 用户ID
 * @property int $channel_id 频道ID
 * @property int $listorder 排序
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 * @property int $deleted_at
 */
class TslineUserChannel extends \yii\db\ActiveRecord {

    use \common\traits\TimestampBehavior;

    /**
     * @inheritdoc
     */
    public static function tableName() {
        return '{{%ts_user_channel}}';
    }

    /**
     * @inheritdoc
     */
    public function rules() {
        return [
            [['user_id', 'channel_id', 'listorder', 'created_at', 'updated_at', 'deleted_at'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'user_id' => '用户ID',
            'channel_id' => '频道ID',
            'listorder' => '排序',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
            'deleted_at' => 'Deleted At',
        ];
    }

}
